<template>
  <div class="page">
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="(item, index) in ban" :key="index">
        <img :src="(item.slide_show_imgUrl)" alt="">
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script lang="ts" setup>
import { type First } from '@/api'
defineProps<{
  ban: First.bannerItem[]
}>()


</script>

<style lang="scss" scoped>
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #39a9ed;
  height: 100%;
}

img {
  width: 100%;
  height: 100%;
  display: block;
}
</style>